from django.db import models

# Create your models here.


#登录
class Lu(models.Model):
    name=models.CharField('用户名',max_length=200)
    password=models.CharField('密码',max_length=200)
    class Meta:
        verbose_name_plural='登录'
        db_table='lu'
    def __str__(self):
        return self.name



#仓库名
class Cang(models.Model):
    name=models.CharField('仓库名',max_length=200)
    class Meta:
        verbose_name_plural = '仓库表'
        db_table = 'cang'
    def __str__(self):
        return self.name


#仓库类别
class  Ku(models.Model):
    name=models.CharField('订单号',max_length=200)
    hao=models.CharField('订单编号',max_length=200)
    cheng=models.CharField('订单名称',max_length=200)
    lian=models.CharField('联系人',max_length=200)
    ss=models.ForeignKey(Cang,on_delete=models.CASCADE,verbose_name='仓库名外键')
    class Meta:
        verbose_name_plural = '仓库类别'
        db_table = 'ku'
    def __str__(self):
        return self.name